import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

const router = new Router({
  mode: "hash",
  routes: [
    {
      path: "/",
      redirect: {
        path: "/whole",
      },
    },
    {
      path: "/whole",
      name: "全部",
      component: (resolve) => {
        require(["../views/whole.vue"], resolve);
      },
    }
  ]
})

export default router